/*
*  Copyright 2019-2023 oyun
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/package com.oyun.modules.document.domain;

import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
/**
* @description /
* @author oyun
* @date 2024-05-23
**/
@Data
@TableName("catalogue")
public class Catalogue implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "docId")
    private Long docId;

    @ApiModelProperty(value = "封面")
    private String coverB;

    @ApiModelProperty(value = "coverE")
    private String coverE;

    @ApiModelProperty(value = "扇页")
    private String fLeafB;

    @ApiModelProperty(value = "fLeafE")
    private String fLeafE;

    @ApiModelProperty(value = "版权页")
    private String cPageB;

    @ApiModelProperty(value = "cPageE")
    private String cPageE;

    @ApiModelProperty(value = "总目")
    private String gHeadingB;

    @ApiModelProperty(value = "gHeadingE")
    private String gHeadingE;

    @ApiModelProperty(value = "出版说明")
    private String pNoteB;

    @ApiModelProperty(value = "pNoteE")
    private String pNoteE;

    @ApiModelProperty(value = "前言")
    private String introductionB;

    @ApiModelProperty(value = "introductionE")
    private String introductionE;

    @ApiModelProperty(value = "序")
    private String sequenceB;

    @ApiModelProperty(value = "sequenceE")
    private String sequenceE;

    @ApiModelProperty(value = "凡例")
    private String exampleB;

    @ApiModelProperty(value = "exampleE")
    private String exampleE;

    @ApiModelProperty(value = "音序索引")
    private String pIndexB;

    @ApiModelProperty(value = "pIndexE")
    private String pIndexE;

    @ApiModelProperty(value = "正文")
    private String mBadyB;

    @ApiModelProperty(value = "mBodyE")
    private String mBodyE;

    @ApiModelProperty(value = "附录")
    private String appendixB;

    @ApiModelProperty(value = "appendixE")
    private String appendixE;

    @ApiModelProperty(value = "封底")
    private String backB;

    @ApiModelProperty(value = "backE")
    private String backE;

    @ApiModelProperty(value = "createBy")
    private String createBy;

    @ApiModelProperty(value = "createTime")
    private Timestamp createTime;

    @ApiModelProperty(value = "updateBy")
    private String updateBy;

    @ApiModelProperty(value = "updateTime")
    private Timestamp updateTime;

    @ApiModelProperty(value = "remark")
    private String remark;

    @ApiModelProperty(value = "status")
    private String status;

    public void copy(Catalogue source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
